import {createStore,combineReducers} from 'redux'
import { CollapsedReducer } from './reducer/CollapsedReducer'
import { LoadingReducer } from './reducer/LoadingReducer'
import {persistStore,persistReducer} from 'redux-persist'
import storage from 'redux-persist/lib/storage'

const persistConfig = {
    key: 'lq',
    storage,
    blacklist: ['LoadingReducer']
  }
  const reducer= combineReducers({
    CollapsedReducer,
    LoadingReducer
})
  const persistedReducer = persistReducer(persistConfig, reducer)
  let store = createStore(persistedReducer)
  let persistor = persistStore(store)

// const store=createStore(reducer)
export { store, persistor }
